package com.huonan.component.es;

import lombok.Getter;

@Getter
public enum IndexDateType {
    YEAR_TYPE("yyyy", "year"),
    MOTH_TYPE("yyyyMM", "month"),
    DAY_TYPE("yyyyMMdd", "day");
    private String value;
    private String name;

    IndexDateType(String type, String name) {
        this.value = type;
        this.name = name;
    }
}
